var runtime.class_to_size
13 uses
runtime (current package)
malloc.go#L376: if class_to_size[_TinySizeClass] != _TinySize {
malloc.go#L1111: size = uintptr(class_to_size[sizeclass])
mcentral.go#L244: size := uintptr(class_to_size[c.spanclass.sizeclass()])
metrics.go#L82: sizeClassBuckets[i] = float64(class_to_size[i] + 1)
metrics.go#L610: a.totalAllocated += na * uint64(class_to_size[i])
metrics.go#L611: a.totalFreed += nf * uint64(class_to_size[i])
mheap.go#L1403: s.elemsize = uintptr(class_to_size[sizeclass])
msize.go#L16: return uintptr(class_to_size[size_to_class8[divRoundUp(size, smallSizeDiv)]])
msize.go#L18: return uintptr(class_to_size[size_to_class128[divRoundUp(size-smallSizeMax, largeSizeDiv)]])
mstats.go#L407: bySize[i].Size = uint32(class_to_size[i])
mstats.go#L411: totalAlloc += a * uint64(class_to_size[i])
mstats.go#L417: totalFree += f * uint64(class_to_size[i])
sizeclasses.go#L94: var class_to_size = [_NumSizeClasses]uint16{0, 8, 16, 24, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 256, 288, 320, 352, 384, 416, 448, 480, 512, 576, 640, 704, 768, 896, 1024, 1152, 1280, 1408, 1536, 1792, 2048, 2304, 2688, 3072, 3200, 3456, 4096, 4864, 5376, 6144, 6528, 6784, 6912, 8192, 9472, 9728, 10240, 10880, 12288, 13568, 14336, 16384, 18432, 19072, 20480, 21760, 24576, 27264, 28672, 32768}
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |